import React,{Component}from 'react';
import {Input}from 'element-react';

export default class TableInput extends Component{
	constructor(props){
		super(props);
		this.state={
			tableInput:'',
		}
	}
	render(){
		return (
			<Input defaultValue={this.props.data} onChange={(v)=>{this.setState({
				tableInput:v});
				this.props.change(v);}}>
			</Input>
		)
	}
}
